package com.yulinlin.admin.modules.sys.domain;

import com.yulinlin.common.domain.SuperEntity;

import com.yulinlin.data.core.anno.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.util.Date;



@Data
@ApiModel("系统部门")
@JoinTable("sys_dept")
public class SysDeptEntity extends SuperEntity<SysDeptEntity>  {





        @NotEmpty(message = "必填")
        @ApiModelProperty("图标")
        @JoinWhere
        @JoinField
        private String logo;

        @NotEmpty(message = "必填")
        @ApiModelProperty("父编号")
        @JoinWhere
        @JoinField
        private String parentId;

        @NotEmpty(message = "必填")
        @ApiModelProperty("父路径")
        @JoinWhere
        @JoinField
        private String parentPath;

        @NotEmpty(message = "必填")
        @ApiModelProperty("部门名称")
        @JoinWhere
        @JoinField
        private String deptName;

        @NotEmpty(message = "必填")
        @ApiModelProperty("排序数字")
        @JoinWhere
        @JoinField
        private Integer sortValue;





        @NotEmpty(message = "必填")
        @ApiModelProperty("孩子数量")
        @JoinWhere
        @JoinField
        private Integer childrenSize;


}
